package packet;

import java.io.Serializable;

import sql.WriteReport;

import TCP.Communication.CommunicationServer;
import TCP.Communication.LinkerClient;
import TCP.Communication.LinkerServer;
import TCP.Packet.sys.Packet_i;

public class ReportBack implements Packet_i,Serializable{
	public int oldid;
	public int medid;
	@Override
	public void runOnServer(LinkerServer ls) {
		CommunicationServer.cs.sendTo指定名稱(ls, this, new String[]{"sql"});
	}

	@Override
	public void runOnClient(LinkerClient lc) {
		WriteReport w=new WriteReport();
		w.write(oldid, medid);
	}

}
